{*{if (count($pages) + count($firstpages) + count($lastpages)) gt 1}
	<a href="{$prevUrl}" class="prvnext">&laquo; poprzednia</a> 
	{foreach from=$firstpages item=page}<a href="{$page.url}" {$page.selected}>{$page.number}</a>{/foreach}
	{if count($pages) gt 0 && count($firstpages) gt 0}...{/if}
	{foreach from=$pages item=page}<a href="{$page.url}" {$page.selected}>{$page.number}</a>{/foreach}
	{if count($lastpages) gt 0 && count($pages) gt 0}...{/if}
	{foreach from=$lastpages item=page}<a href="{$page.url}" {$page.selected}>{$page.number}</a>{/foreach}
	<a class="prvnext" href="{$nextUrl}">następna &raquo;</a>
{/if}
*}
{if (count($pages) + count($firstpages) + count($lastpages)) gt 1	}
				<div class="pagesL">
					<a href="{$special.first.url}" title="first" class="first"></a>
					<a href="{$special.prev.url}" title="prev" class="prev"></a>
					{foreach from=$pages item=page}
						<a href="{$page.url}" title="{$page.number}"  class="no{if $page.selected}Selected{/if}">{$page.number}</a>
					{/foreach}
					<a title="{'of'|t}" >{'of'|t}</a>
					<a href="{$special.last.url}" title="{$page_count}" class="no">{$page_count}</a>
					
					<a href="{$special.next.url}" title="next" class="next"></a>
					<a href="{$special.last.url}" title="last" class="last"></a>
				</div>
{/if}
